/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package koor.authorization;

import koor.persistent.UserDAO;
import koor.service.ServiceLocator;

/**
 * The
 * <code>UserValidator</code> class uses to check user authorisation
 * @author Admin
 */
public class UserValidator {

    public static int isLoginValid(String login, String password) {
        UserDAO userDAO = ServiceLocator.getService(UserDAO.class);
        int result = userDAO.checkAuthorisation(login, password);
        return result;
    }
}
